package com.yulinlin.authorization.modules.admin.entity;

import com.yulinlin.common.domain.SuperEntity;
import com.yulinlin.data.core.anno.JoinField;
import com.yulinlin.data.core.anno.JoinTable;
import com.yulinlin.data.core.anno.JoinWhere;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;


@Data
@ApiModel("系统元素")
@JoinTable("sys_element")
public class SysElementEntity extends SuperEntity<SysElementEntity>  {





        @NotEmpty(message = "必填")
        @ApiModelProperty("标题")
        @JoinWhere
        @JoinField
        private String title;

        @NotEmpty(message = "必填")
        @ApiModelProperty("编码")
        @JoinWhere
        @JoinField
        private String code;




}
